import { ApiPropertyOptional } from "@nestjs/swagger";
import { IsOptional, IsString } from "class-validator";
import { PaginationQueryDto } from 'src/common/dto/pagination-query.dto';

export class QuestionQueryDto extends PaginationQueryDto {
  @ApiPropertyOptional({
    description: '题目内容',
    example: '这个世界上最高的山是哪座？',
  })
  @IsOptional()
  @IsString()
  question?: string;
}
